]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Move close button to the panel
authorIvan Molodetskikh <yalterz@gmail.com>
Wed, 2 Feb 2022 17:22:20 +0000 (20:22 +0300)
committerMarge Bot <marge-bot@gnome.org>
Thu, 3 Feb 2022 16:43:02 +0000 (16:43 +0000)
commit6765fac76aaac288e1ad6d2e9775a292492cf038
treecc425a0c3edbe2ddb9de6dadad9fda1d4ab613a9
parent3cc045b6b89d5e6db1c12cff219d504b929e2ccb
screenshot: Move close button to the panel

CSS and JS adapted from the Overview window close buttons, but with some
style tweaks requested by the designers.

Since the screenshot UI is long-lived (it's created once at startup,
rather than every time it's opened), we need to refresh the close button
position, as it can change at runtime. Subscribing to preference changes
seems to be skipped for bindings generation in Mutter, but simply
refreshing upon opening the UI should do the job.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4997

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2147>
data/theme/gnome-shell-sass/widgets/_screenshot.scss
js/ui/screenshot.js